import request from '@/utils/request'

// 查询屏幕列表
export function listBizScreen(query) {
    return request({
        url: '/app-api/equipment/bizScreen/list',
        method: 'get',
        params: query
    })
}

// 查询屏幕详细
export function getBizScreen(id) {
    return request({
        url: '/app-api/equipment/bizScreen/' + id,
        method: 'get'
    })
}

// 下拉屏幕
export function listScreenSelect() {
    return request({
        url: '/app-api/equipment/bizScreen/select/list',
        method: 'get'
    })
}

// 新增屏幕
export function addBizScreen(data) {
    return request({
        url: '/app-api/equipment/bizScreen',
        method: 'post',
        data: data
    })
}

export function addScreenSensor(data) {
    return request({
        url: '/app-api/equipment/bizScreen/screenSensor',
        method: 'post',
        data: data
    })
}

export function getScreenSensor(id) {
    return request({
        url: '/app-api/equipment/bizScreen/screenSensor/' + id,
        method: 'get'
    })
}

// 修改屏幕
export function updateBizScreen(data) {
    return request({
        url: '/app-api/equipment/bizScreen',
        method: 'put',
        data: data
    })
}

// 删除屏幕
export function delBizScreen(id) {
    return request({
        url: '/app-api/equipment/bizScreen/' + id,
        method: 'delete'
    })
}
